﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Chat.Business.Service.DataContracts;

namespace Chat.Business.Service.BasicHttp
{
    [ServiceContract]
    public interface IHttpChat
    {
        [OperationContract(IsOneWay = true)]
        void svcJoin(string uname);

        [OperationContract(IsOneWay = true)]
        void svcSendMessage(string msg, string from, List<string> to);

        [OperationContract(IsOneWay = false)]
        List<clsMessage> svcGetMessages(string recipient);

        [OperationContract(IsOneWay = true)]
        void svcSetUserList(string uname);

        [OperationContract(IsOneWay = true)]
        void svcGetUserList(string uname);

        [OperationContract(IsOneWay = true)]
        void svcSignOutChat(string from, List<string> to);

        [OperationContract(IsOneWay = true)]
        void svcUnJoin(string uname);

    }

    public interface IHttpChatChannel : IHttpChat, IClientChannel
    {
    }
}
